// 专题


var mongoose = require('mongoose')
var db = require('./db.js')

var projectSchema = mongoose.Schema({
    name: String,
    introduction: String,
    img: String
});

// newsSchema.statics = {
//     fetch(name, cb) {
//         return this.find({'title': name})
//         .limit(5)
//         .skip(0)
//         .sort({'_id':-1})
//         .exec(cb);
//     }
// } 

var project = mongoose.model('project', projectSchema);

module.exports = project